<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>wickr-crypto-c: Wickr_ecdsa_result</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">wickr-crypto-c
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Wickr_ecdsa_result</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structwickr__ecdsa__result.html">wickr_ecdsa_result</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Elliptic Curve Digital Signature Algorithm Result.  <a href="structwickr__ecdsa__result.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga7e199a7c851fd07fb93180fb3a242749"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structwickr__ecdsa__result.html">wickr_ecdsa_result_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wickr__ecdsa__result.html#ga7e199a7c851fd07fb93180fb3a242749">wickr_ecdsa_result_create</a> (<a class="el" href="structwickr__ec__curve.html">wickr_ec_curve_t</a> curve, <a class="el" href="structwickr__digest.html">wickr_digest_t</a> digest_mode, <a class="el" href="structwickr__buffer.html">wickr_buffer_t</a> *sig_data)</td></tr>
<tr class="separator:ga7e199a7c851fd07fb93180fb3a242749"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga417d1186e93d6ae4ee4cf701a2bfb1b2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structwickr__buffer.html">wickr_buffer_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wickr__ecdsa__result.html#ga417d1186e93d6ae4ee4cf701a2bfb1b2">wickr_ecdsa_result_serialize</a> (const <a class="el" href="structwickr__ecdsa__result.html">wickr_ecdsa_result_t</a> *result)</td></tr>
<tr class="separator:ga417d1186e93d6ae4ee4cf701a2bfb1b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa3a5ba5ce3df076cf5a9984f68e34c3a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structwickr__ecdsa__result.html">wickr_ecdsa_result_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wickr__ecdsa__result.html#gaa3a5ba5ce3df076cf5a9984f68e34c3a">wickr_ecdsa_result_create_from_buffer</a> (const <a class="el" href="structwickr__buffer.html">wickr_buffer_t</a> *buffer)</td></tr>
<tr class="separator:gaa3a5ba5ce3df076cf5a9984f68e34c3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8664bbdec0bc8b354b3cb35704c42f57"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structwickr__ecdsa__result.html">wickr_ecdsa_result_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wickr__ecdsa__result.html#ga8664bbdec0bc8b354b3cb35704c42f57">wickr_ecdsa_result_copy</a> (const <a class="el" href="structwickr__ecdsa__result.html">wickr_ecdsa_result_t</a> *source)</td></tr>
<tr class="separator:ga8664bbdec0bc8b354b3cb35704c42f57"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga84fb120b34b4b7ede4042009c735ea5d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wickr__ecdsa__result.html#ga84fb120b34b4b7ede4042009c735ea5d">wickr_ecdsa_result_destroy</a> (<a class="el" href="structwickr__ecdsa__result.html">wickr_ecdsa_result_t</a> **result)</td></tr>
<tr class="separator:ga84fb120b34b4b7ede4042009c735ea5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga8664bbdec0bc8b354b3cb35704c42f57"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8664bbdec0bc8b354b3cb35704c42f57">&#9670;&nbsp;</a></span>wickr_ecdsa_result_copy()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structwickr__ecdsa__result.html">wickr_ecdsa_result_t</a>* wickr_ecdsa_result_copy </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structwickr__ecdsa__result.html">wickr_ecdsa_result_t</a> *&#160;</td>
          <td class="paramname"><em>source</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Copy an ECDSA result</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">source</td><td>the ECDSA result to copy </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a newly allocated ECDSA result holding a deep copy of the properties of 'source' </dd></dl>

</div>
</div>
<a id="ga7e199a7c851fd07fb93180fb3a242749"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7e199a7c851fd07fb93180fb3a242749">&#9670;&nbsp;</a></span>wickr_ecdsa_result_create()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structwickr__ecdsa__result.html">wickr_ecdsa_result_t</a>* wickr_ecdsa_result_create </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structwickr__ec__curve.html">wickr_ec_curve_t</a>&#160;</td>
          <td class="paramname"><em>curve</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structwickr__digest.html">wickr_digest_t</a>&#160;</td>
          <td class="paramname"><em>digest_mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structwickr__buffer.html">wickr_buffer_t</a> *&#160;</td>
          <td class="paramname"><em>sig_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create an ECDSA result from components</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">curve</td><td>see '<a class="el" href="structwickr__ecdsa__result.html" title="Elliptic Curve Digital Signature Algorithm Result.">wickr_ecdsa_result</a>' property documentation </td></tr>
    <tr><td class="paramname">digest_mode</td><td>see '<a class="el" href="structwickr__ecdsa__result.html" title="Elliptic Curve Digital Signature Algorithm Result.">wickr_ecdsa_result</a>' property documentation </td></tr>
    <tr><td class="paramname">sig_data</td><td>see '<a class="el" href="structwickr__ecdsa__result.html" title="Elliptic Curve Digital Signature Algorithm Result.">wickr_ecdsa_result</a>' property documentation property documentation </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a newly allocated ECDSA result owning the properties passed in </dd></dl>

</div>
</div>
<a id="gaa3a5ba5ce3df076cf5a9984f68e34c3a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa3a5ba5ce3df076cf5a9984f68e34c3a">&#9670;&nbsp;</a></span>wickr_ecdsa_result_create_from_buffer()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structwickr__ecdsa__result.html">wickr_ecdsa_result_t</a>* wickr_ecdsa_result_create_from_buffer </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structwickr__buffer.html">wickr_buffer_t</a> *&#160;</td>
          <td class="paramname"><em>buffer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create an ECDSA result from a serialized ECDSA result buffer</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">buffer</td><td>a buffer containing a serialized ECDSA result buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>ecdsa result parsed from 'buffer'. This function makes a copy of all bytes as it is parsing, so the resulting ECDSA result owns its properties. Returns NULL on parsing failure </dd></dl>

</div>
</div>
<a id="ga84fb120b34b4b7ede4042009c735ea5d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga84fb120b34b4b7ede4042009c735ea5d">&#9670;&nbsp;</a></span>wickr_ecdsa_result_destroy()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void wickr_ecdsa_result_destroy </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structwickr__ecdsa__result.html">wickr_ecdsa_result_t</a> **&#160;</td>
          <td class="paramname"><em>result</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Destroy an ECDSA result</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">result</td><td>a pointer to the result to destroy. All properties of '*result' will also be destroyed </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga417d1186e93d6ae4ee4cf701a2bfb1b2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga417d1186e93d6ae4ee4cf701a2bfb1b2">&#9670;&nbsp;</a></span>wickr_ecdsa_result_serialize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structwickr__buffer.html">wickr_buffer_t</a>* wickr_ecdsa_result_serialize </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structwickr__ecdsa__result.html">wickr_ecdsa_result_t</a> *&#160;</td>
          <td class="paramname"><em>result</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Serialize an ECDSA result into a buffer</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">result</td><td>the ecdsa result to serialize </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a newly allocated buffer with serialized ECDSA result properties in the following format | CURVE_ID DIGEST_ID | SIG_DATA |. NOTE that CURVE_ID and DIGEST_ID are packed into 1 byte as 4 bit unsigned integers </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
